package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.Plan;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface PlanMapper {
    ArrayList<Plan> getPlanByMid(Integer mid);
    ArrayList<Plan> getPlanByCid(Integer cid);
    ArrayList<Plan> getPlanByMidNow(Integer mid);
    ArrayList<Plan> getPlanNow();
    Plan getPlanByPid(Integer pid);
    int addPlan(Plan plan);
    int updatePlan(Plan plan);
    int deletePlan(Integer pid);
}
